import React, { Suspense } from 'react'
// 导入路由对象
import routes from './routes'
import { useRoutes } from 'react-router-dom'
export default function App() {
  // 基于路由对象创建路由组件
  const element = useRoutes(routes)
  return <Suspense>{element}</Suspense>
}
